package com.panghl.controller;

import com.panghl.mapper.UsersMapper;
import com.panghl.model.entity.Users;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xiaokuixiao
 * date2024/7/25 13:56
 */

@RestController
@RequestMapping("/users")
public class UsersController {

    @Resource
    private UsersMapper usersMapper;


    @PostMapping("/insert")
    public String   insertUser(@RequestBody Users user){
        usersMapper.insert(user);
        return "ok";
    }




}
